<% DIRECTIVE SAFE_OUTPUT_OPEN; %>
<!-- 添加费用 -->
<div data-role="page" id="add_money">
  <div data-role="header"  data-position="fixed" data-theme="b">
  	<a href="#project" class="ui-btn-left ui-btn ui-shadow ui-corner-all ui-icon-back ui-btn-icon-notext ui-btn-b ui-btn-inline">返回</a>
    <h3>添加费用</h3>
  	<a href="#project" class="ui-btn-right ui-btn ui-shadow ui-corner-all ui-icon-check ui-btn-icon-notext ui-btn-b ui-btn-inline">保存</a>
  </div>

  <div data-role="content">
  		<form name="form_money" method="post" action="web/save_money">
		  <input type="hidden" name="model.id" value="${model.id}" />
	      <div data-role="fieldcontain">
	        <label>项目名称：</label>
	        <select name="model.project_id" class="form-control">
				${optionList }
			</select>    
	        <label>概要：</label>
	        <input required="required"  class="form-control" type="text" name="model.name" value="${model.name}" />
	        <label>金额(RMB)：</label>
	        <input required="required"  class="form-control" type="text" name="model.amount" value="${model.amount}" />
	        <label>类型：</label>
			<select name="model.type" class="form-control" >
				${flyfox.dictSelect('moneyType',model.type!0)}
			</select>
			<label>时间：</label>
			<input type="date" name="model.pay_time" value="${model.pay_time}" />
			<label>备注：</label>
			<textarea cols="40" rows="8" name="model.remark">${model.remark}</textarea>
	      </div>
	      <div data-role="fieldcontain" style="text-align: center;">
	      	<input type="submit" data-inline="true" value="保存">
	      	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	      	<input type="button" onclick="money_back()" data-inline="true" value="取消">
      	  </div>
	    </form>
		
				
  </div>

</div> 
<% DIRECTIVE SAFE_OUTPUT_CLOSE; %>